<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>_苏州实达慕家具股份有限公司</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link rel="stylesheet" type="text/css" href="http://shidamu.com/dm/templets/dm/css/base.css" />
    <link rel="stylesheet" type="text/css" href="http://shidamu.com/dm/templets/dm/css/style.css" />
    <!--javascript-->
    <script type="text/javascript" src="http://shidamu.com/dm/templets/dm/js/jquery.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=IDvNBsejl9oqMbPF316iKsXR"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script>
    <link rel="stylesheet" href="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.css" />
    <script type="text/javascript">
    $(function() {


        //$("#selProvince").change(function () {
        //    getcity();
        //});

        //$("#selCity").change(function () {
        //    getarea();
        //});
        getprovince();
        $(".shopbtn").click(function() {
            selectShop();
        });
    });
    var shopData;
    var markerArr;
    var pid, cid, aid;

    function selectShop() {
        $(".shoplist").html("");

        $.ajax({
            type: "POST",
            url: "/Ajax/ajax.ashx",
            async: false,
            data: {
                "type": "selectshopinfo",
                "province": pid,
                "city": cid,
                "area": aid
            },
            success: function(msg) {
                var data1 = eval("(" + msg + ")");
                shopData = data1;
                //markerArr= JSON.stringify(shopData);

                if (shopData == "") {
                    markerArr = [{
                        "title": "晚安家居",
                        "point": "112.911712,28.146578",
                        "address": "长沙市岳麓区含浦晚安工业园前中国红木馆",
                        "tel": "0731-89819199"
                    }];
                    var li1 = "<li><p>门店信息正在更新中...</p></li>";
                    $(".shoplist").append(li1);
                    num = 6;
                } else {
                    markerArr = shopData;
                    num = "";
                }



                $.each(data1, function(i, shop) {
                    var li = " <li><p>经销商名称：" + shop["title"] + "</p><p>店面地址：" + shop["address"] + "</p><p>联系电话：" + shop["tel"] + "</p></li>";
                    $(".shoplist").append(li);

                });

                map_load();
            },
            error: function(msg) {
                alert("错误");
            }

        });

    }

    function getprovince() {
        $.getJSON("/ajax/ajax.ashx", {
            type: "province"
        }, function(msg) {

            $("#new").append(msg.result);
            $("#new li").click(function() {
                var li = $(this).text();

                $(this).parent("ul").prev("p").html(li);
                pid = $(this).attr("itemId");

                $(".new").hide();
                $("p").removeClass("select");
                getcity(pid);
                $("#pArea").html("--请选择县区--");
                aid = "";
                cid = "";
            });
        });

    }

    function getcity(pid) {
        $("#new1").html("");
        $("#pCity").html("--请选择市--");
        $.getJSON("/ajax/ajax.ashx", {
            type: "city",
            pId: pid
        }, function(msg) {

            $("#new1").append(msg.result);

            $("#new1 li").click(function() {
                var li = $(this).text();

                $(this).parent("ul").prev("p").html(li);
                cid = $(this).attr("itemId");
                getarea(cid)
                $(".new").hide();
                $("p").removeClass("select");

            });


        });
    }

    function getarea(cid) {
        $("#new2").html("");
        $("#pArea").html("--请选择县区--");
        $.getJSON("/ajax/ajax.ashx", {
            type: "area",
            cid: cid
        }, function(msg) {

            $("#new2").append(msg.result);

            $("#new2 li").click(function() {
                var li = $(this).text();
                aid = $(this).attr("itemId");
                $(this).parent("ul").prev("p").html(li);
                $(".new").hide();
                $("p").removeClass("select");
            });
        });
    }


    markerArr = [{
        "title": "名称：晚安家居（含浦店）",
        "point": "112.911712,28.146578",
        "address": "长沙市岳麓区含浦晚安工业园前中国红木馆",
        "tel": "0731-89819199"
    }, {
        title: "名称：晚安家居（三湘南湖店）",
        point: "113.023531,28.20779",
        address: "长沙芙蓉区三湘南湖家具城 ",
        tel: "0731-84724416"
    }, {
        title: "名称：晚安家居（新芙蓉国际店）",
        point: "112.992679,28.146819",
        address: "长沙市天心区新芙蓉国际家居建材广场",
        tel: "0731-85016935"
    }, {
        title: "名称：晚安家居（红星美凯龙店）",
        point: "112.95669,28.232569",
        address: "长沙市岳麓区红星美凯龙家居生活广场",
        tel: "0731-82891062"
    }, {
        "title": "名称：晚安家居（井湾子店）",
        "point": " 113.013336,28.130046",
        "address": "长沙市雨花区井湾子国际家具城",
        "tel": "0731-88273771"
    }, {
        title: "名称：晚安家居（广大环球店）",
        point: "112.918697,28.221915",
        address: "长沙市岳麓区广大环球家具城 ",
        tel: "0731-88113393"
    }, {
        title: "名称：晚安家居（居然之家店）",
        point: "112.986223,28.259101",
        address: "长沙市开福区居然之家金源店",
        tel: "0731-89930188"
    }, {
        title: "名称：晚安家居（喜盈门范城店）",
        point: "113.041413,28.138596",
        address: "长沙市雨花区喜盈门范城",
        tel: "0731-89930188"
    }];
    var num = "";

    function map_init() {

        if (num == "") {

            var map = new BMap.Map("map"); // 创建Map实例
            var p0 = markerArr[0].point.split(",")[0];
            var p1 = markerArr[0].point.split(",")[1];
            var point = new BMap.Point(p0, p1); //地图中心点，广州市
            map.centerAndZoom(point, 12); // 初始化地图,设置中心点坐标和地图级别。
            map.enableScrollWheelZoom(true); //启用滚轮放大缩小
        } else {

            var map = new BMap.Map("map"); // 创建Map实例
            var p0 = markerArr[0].point.split(",")[0];
            var p1 = markerArr[0].point.split(",")[1];
            var point = new BMap.Point(p0, p1); //地图中心点，广州市
            map.centerAndZoom(point, 6); // 初始化地图,设置中心点坐标和地图级别。
            map.enableScrollWheelZoom(true); //启用滚轮放大缩小
        }

        //地图、卫星、混合模式切换
        map.addControl(new BMap.MapTypeControl({
            mapTypes: [BMAP_NORMAL_MAP, BMAP_SATELLITE_MAP, BMAP_HYBRID_MAP]
        }));
        //向地图中添加缩放控件
        var ctrlNav = new window.BMap.NavigationControl({
            anchor: BMAP_ANCHOR_TOP_LEFT,
            type: BMAP_NAVIGATION_CONTROL_LARGE
        });
        map.addControl(ctrlNav);
        //向地图中添加缩略图控件
        var ctrlOve = new window.BMap.OverviewMapControl({
            anchor: BMAP_ANCHOR_BOTTOM_RIGHT,
            isOpen: 1
        });
        map.addControl(ctrlOve);
        //向地图中添加比例尺控件
        var ctrlSca = new window.BMap.ScaleControl({
            anchor: BMAP_ANCHOR_BOTTOM_LEFT
        });
        map.addControl(ctrlSca);

        var point = new Array(); //存放标注点经纬信息的数组
        var marker = new Array(); //存放标注点对象的数组
        var info = new Array(); //存放提示信息窗口对象的数组
        var searchInfoWindow = new Array(); //存放检索信息窗口对象的数组

        for (var i = 0; i < markerArr.length; i++) {
            var p0 = markerArr[i].point.split(",")[0]; //
            var p1 = markerArr[i].point.split(",")[1]; //按照原数组的point格式将地图点坐标的经纬度分别提出来
            point[i] = new window.BMap.Point(p0, p1); //循环生成新的地图点
            marker[i] = new window.BMap.Marker(point[i]); //按照地图点坐标生成标记
            map.addOverlay(marker[i]);
            marker[i].setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
            //显示marker的title，marker多的话可以注释掉
            var label = new window.BMap.Label(markerArr[i].title, {
                offset: new window.BMap.Size(20, -10)
            });
            marker[i].setLabel(label);
            // 创建信息窗口对象
            info[i] = "<p style=’font-size:12px;lineheight:1.8em;’>" + "</br>地址：" + markerArr[i].address + "</br> 电话：" + markerArr[i].tel + "</br></p>";
            //创建百度样式检索信息窗口对象                       
            searchInfoWindow[i] = new BMapLib.SearchInfoWindow(map, info[i], {
                title: markerArr[i].title, //标题
                width: 290, //宽度
                height: 55, //高度
                panel: "panel", //检索结果面板
                enableAutoPan: true, //自动平移
                searchTypes: [
                    BMAPLIB_TAB_SEARCH, //周边检索
                    BMAPLIB_TAB_TO_HERE, //到这里去
                    BMAPLIB_TAB_FROM_HERE //从这里出发
                ]
            });
            //添加点击事件
            marker[i].addEventListener("click",
                (function(k) {
                    // js 闭包
                    return function() {
                        //将被点击marker置为中心
                        //map.centerAndZoom(point[k], 18);
                        //在marker上打开检索信息窗口
                        searchInfoWindow[k].open(marker[k]);
                    }
                })(i)
            );
        }
    }
    //异步调用百度js
    function map_load() {
        var load = document.createElement("script");
        load.src = "http://api.map.baidu.com/api?v=2.0&ak=IDvNBsejl9oqMbPF316iKsXR&callback=map_init";
        document.body.appendChild(load);
    }
    </script>
    <title>
    </title>
</head>

<body>
<script language="javascript" type="text/javascript" src="/dm/images/enums.js"></script>
<form name='infoguide' method='get' action='/uploads/plus/list.php'>
    <input type='hidden' id='hidden_nativeplace' name='nativeplace' value='0' />
<span class='infosearchtxt'>地区：</span><span id='span_nativeplace'></span>
<span id='span_nativeplace_son'></span>
<span id='span_nativeplace_sec'></span><br />
<script language='javascript' type='text/javascript' src='/dm/data/enums/nativeplace.js'></script>
<script language="javascript">MakeTopSelect("nativeplace", 0);</script>

    <span class='infosearchtxt'>关键字：</span><span><input type='text' name='keyword' value='' class="ipt-txt" /></span>
    <input type='submit' value='搜索信息' class="btn-2" style='cursor:pointer' />
    </form>
    <script type="text/javascript" src="http://shidamu.com/dm/templets/dm/js/jquery.js"></script>
            <div class="loading" style="display: table; width: 100%;height: 100%; position: fixed; top:0;left:0; z-index: 111111111; background-color: #fff;">
        <div class="spinner" style="display: table-cell; vertical-align: middle;">
          <div class="rect1"></div>
          <div class="rect2"></div>
          <div class="rect3"></div>
          <div class="rect4"></div>
          <div class="rect5"></div>
        </div>
    </div>
    <script type="text/javascript" src="/dm/templets/dm/js/jquery.js"></script>
    <script>
    $(function(){
        $('.loading').fadeOut(1000);
    });
    </script>
    <iframe frameborder="0" style="position: absolute; display: none; opacity: 0;"></iframe>
    <div class="jiathis_style" style="position: absolute; z-index: 1000000000; display: none; top: 50%; left: 50%; overflow: auto;"></div>
    <div class="jiathis_style" style="position: absolute; z-index: 1000000000; display: none; overflow: auto;"></div>
    <div class="bglayout" id="bg"></div>
    <div class="mydiv" id="popDiv1">
        <span class="close" onclick="closeDiv(1)"></span>
        <div class="webshopbox">
            <div class="web_tit">
                <h2>温馨提示</h2></div>
            <div class="webbox">
                <p>现在将前往实达慕家具的官方网上商城，请选择商城</p>
                <ul class="webboxlist" id="linkweb">
                    <li date-href="javascript:void(0);"><img src="/dm/templets/dm/images/20160516115711668.png" width="16" height="16" align="absmiddle"> 天猫商城</li>
                    <li date-href="javascript:void(0);"><img src="/dm/templets/dm/images/20160516115658880.png" width="16" height="16" align="absmiddle"> 京东商城</li>
                </ul>
                <input name="" type="button" value="确认前往" class="comeingbtn" id="webbtn" disabled="disabled">
            </div>
        </div>
    </div>
    <!--网上商城弹出层-->
<!--     <div class="navbox" id="hoverBottom">
        <div class="wrap">
            <div class="navbox_con">
                <div class="tempWrap" style="overflow:hidden; position:relative; width:1240px">
                    <ul class="navboxlist" style="width: 1240px; left: 0px; position: relative; overflow: hidden; padding: 0px; margin: 0px;">
                        <li style="float: left; width: 270px;">
                            <a href="http://www.goodnight.com.cn/about/index.aspx">
                                <img src="/dm/templets/dm/images/20160613111558736.jpg" width="270" height="150">
                                <h2>品牌介绍</h2>
                                <p>Brand Introduction</p>
                            </a>
                        </li>
                        <li style="float: left; width: 270px;">
                            <a href="http://www.goodnight.com.cn/about/news.aspx">
                                <img src="/dm/templets/dm/images/20160525032940760.png" width="270" height="150">
                                <h2>品牌动态</h2>
                                <p>Brand Dynamics</p>
                            </a>
                        </li>
                        <li style="float: left; width: 270px;">
                            <a href="http://www.goodnight.com.cn/about/brand.aspx">
                                <img src="/dm/templets/dm/images/20160525032745844.png" width="270" height="150">
                                <h2>品牌风尚</h2>
                                <p>Fashion Brands</p>
                            </a>
                        </li>
                        <li style="float: left; width: 270px;">
                            <a href="http://www.goodnight.com.cn/about/story.aspx">
                                <img src="/dm/templets/dm/images/20160507112317011.jpg" width="270" height="150">
                                <h2>品牌故事</h2>
                                <p>Company Story</p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="navbox_con">
                <span class="prev prevStop"></span>
                <span class="next nextStop"></span>
                <div class="tempWrap" style="overflow:hidden; position:relative; width:1240px">
                    <ul class="navboxlist navboxlist2" style="width: 1240px; left: 0px; position: relative; overflow: hidden; padding: 0px; margin: 0px;">
                        <li style="float: left; width: 270px;">
                            <a href="http://www.goodnight.com.cn/product/list.aspx?typeId=100000001589827">
                                <img src="/dm/templets/dm/images/20160526032422366.jpg" width="270" height="150">
                                <h2>床垫</h2>
                                <p>Mattress</p>
                            </a>
                        </li>
                        <li style="float: left; width: 270px;">
                            <a href="http://www.goodnight.com.cn/product/list.aspx?typeId=100000002229779">
                                <img src="/dm/templets/dm/images/20160513103140418.jpg" width="270" height="150">
                                <h2>软体客卧</h2>
                                <p>Soft series</p>
                            </a>
                        </li>
                        <li style="float: left; width: 270px;">
                            <a href="http://www.goodnight.com.cn/product/list.aspx?typeId=100000002951531">
                                <img src="/dm/templets/dm/images/20160513103149887.jpg" width="270" height="150">
                                <h2>实木套房</h2>
                                <p>Solid wood suite</p>
                            </a>
                        </li>
                        <li style="float: left; width: 270px;">
                            <a href="http://www.goodnight.com.cn/product/list.aspx?typeId=100000003653163">
                                <img src="/dm/templets/dm/images/2016053002168206.png" width="270" height="150">
                                <h2>沙发</h2>
                                <p>Sofa</p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div> -->
    <div class="header">
        <div class="wrap">
            <h1><a href="##" id="top1" name="top1" style="color: #fff;font-weight: bold;font-size: 35px;position: relative;right:100px;">
                <img src="http://shidamu.com/dm/templets/dm/images/main-logo.jpg"></a></h1>
            <ul class="navlist" style="position: relative;left:100px;">
                <li><a href="http://shidamu.com/dm">家居首页</a></li>
                
                <li><a href="/dm/plus/list.php?tid=2">关于家居</a></li>
                
                <li><a href="/dm/plus/list.php?tid=4">家居产品</a></li>
                
                <li><a href="/dm/plus/list.php?tid=9">门店信息</a></li>
                
                <li><a href="javascript:showDiv(1)">网上商城</a></li>
                
                <li><a href="/dm/plus/list.php?tid=7">售后服务</a></li>
                
                <li><a href="/dm/plus/list.php?tid=8">人才招聘</a></li>
                
                <!-- <li class="spa"><a href="[field:typelink/]">[field:typename/]</a></li> -->
                <!-- <li class="spa"><a href="http://www.goodnight.com.cn/product/index.aspx">家居产品</a></li> -->
<!--                 <li><a href="http://www.goodnight.com.cn/shop/index.aspx">门店信息</a></li>
                <li><a href="javascript:showDiv(1)">网上商城</a></li>
                <li><a href="http://www.goodnight.com.cn/service/index.aspx">售后服务</a></li>
                <li><a href="http://www.goodnight.com.cn/jobs/index.aspx">人才招聘</a></li> -->

            </ul>
        </div>
    </div>
    <div class="schbar">
   <div class="wrap">
      <div class="sch">
        <form action="/dm/plus/search.php" method="post">
      <input name="q" type="text" value="输入关键词" class="schtxt1" id="serTitle"/><input name="" type="submit" class="schbtn1" value="" /></form></div>
      <p class="tel">0512-65489806</p>
   </div>  
 </div>
    <div style="width: 100%;display: block;min-width: 1200px; "><img src="http://shidamu.com/dm/templets/dm/images/team_topbg.jpg" class="ban" alt="" style="width:100%" /></div>
    <div class="main">
        <div class="wrap">
            <div class="curr">
                <p>现在的位置：<a href="#">首页</a>><a href="#">门店信息</a></p>
            </div>
            <div class="map">
                <fieldset class="demo_content">
                    <div style="min-height: 300px; width: 100%;" id="map">
                    </div>
                </fieldset>
            </div>

            <div class="shop_sch">
                <div class="shop_left">
                    <div class="shop_tit">
                        <h2>查找门店</h2></div>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="shoptable">
                        <tr>
                            <th width="34%">请选择省份：</th>
                            <td width="66%">
                                <div class="navinput">
                                    <p class="set">--请选择省份--</p>
                                    <ul class="new" id="new">
                                    </ul>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th>请选择城市：</th>
                            <td>
                                <div class="navinput">
                                    <p class="set" id="pCity">--请选择市--</p>
                                    <ul class="new" id="new1">
                                    </ul>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th>请选择区域：</th>
                            <td>
                                <div class="navinput">
                                    <p class="set" id="pArea">--请选择县区--</p>
                                    <ul class="new" id="new2">
                                    </ul>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input name="" type="button" value="搜索门店" class="shopbtn" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="shop_right">
                    <div class="shop_tit">
                        <h2>搜索结果</h2></div>
                    <div class="shop_result">
                        <ul class="shoplist">
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--main end-->
        <!--footer start-->
    <div class="footer">
        <div class="flinks">
            <div class="wrap">
                <a href="http://shidamu.com/dm/" class="first">家居首页</a>
                
                <a href="/dm/plus/list.php?tid=1">关于家居</a>
                
                <a href="/dm/plus/list.php?tid=4">家居产品</a>
                
                <a href="/dm/plus/list.php?tid=9">门店信息</a>
                
                <a href="javascript:showDiv(1)">网上商城</a>
                
                <a href="/dm/plus/list.php?tid=7">售后服务</a>
                
                <a href="#top1" class="last">返回顶部</a>
            </div>
        </div>
        <div class="cls"></div>
        <div class="wrap">
<!--             <div class="ewm">
                <img src="/dm/templets/dm/images/ewm.jpg" width="70" height="70">
                <p>关注达慕家居</p>
            </div> -->
            <div class="copyright">
                <p>苏州实达慕家具股份有限公司 </p>
                <p>地址：苏州市相城区阳澄湖镇枪堂村湘渭路<span>电话：0512-65489806</span>传真：0512-65489806</p>
                <p>Copyright © 2017 达慕家居 All Rights Reserved</p>
                <p>
                </p>
                <script type="text/javascript" src="/dm/templets/dm/js/jia.js" charset="utf-8"></script>
                <script type="text/javascript" src="/dm/templets/dm/js/plugin.client.js" charset="utf-8"></script>
                <!-- JiaThis Button END -->
            </div>
        </div>
    </div>
</body>
<script>
    map_load();
</script>
</html>
<script type="text/javascript" src="http://shidamu.com/dm/templets/dm/js/jquery.js"></script>
<script type="text/javascript" src="http://shidamu.com/dm/templets/dm/js/jquery.SuperSlide.2.1.2.js"></script>
<script type="text/javascript" src="http://shidamu.com/dm/templets/dm/js/jqnav.js"></script>
<script>
jQuery(".navbox_con").slide({
    mainCell: "ul",
    autoPlay: false,
    effect: "left",
    vis: 4,
    scroll: 4,
    autoPage: true,
    pnLoop: false
});
</script>
